package com.gl;

import org.junit.Test;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 功能描述
 *
 * @author gWX1097998
 * @since 2023-01-17
 */
public class Mytest {

    @Test
    public void tt(){
        ApplicationContext beans=new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
        User uu =(User)beans.getBean("u");
        System.out.println("username:"+uu.getUserName()+"  "+"email:"+uu.getEmail());
        uu.say();
        System.out.println(beans.getBean("u").getClass());
        name(() -> {
            System.out.println(1111);
        });
    }




    public void name(TestnterFace xx) {
        xx.xx();

    }
}
